<?php

class User {

  public $id;
  public $nome;
  public $login;
  public $senha;


  public $create;
  public $read;
  public $update;
  public $delete;

  public function __construct($id, $name, $login, $password,$create,$read,$update,$delete)
  {
    $this->id = $id;
    $this->nome = $name;
    $this->login = $login;
    $this->senha = $password;
    $this->create = $create;
    $this->read = $read;
    $this->update = $update;
    $this->delete = $delete;
    
  }


  # GETTER and SETTER FUNCTIONS - DO NOT ALLOW SETTING OF ID
  public function getId() {return $this->id;}
  public function setId($id) {$this->id = $id;}

  public function getNome() {return $this->nome;}
  public function setNome($name) {$this->nome = $name;}
   
  public function getLogin() {return $this->login;}
  public function setLogin($login) {$this->login = $login;}

  public function getSenha() {return $this->senha;}
  public function setSenha($senha) {$this->senha = $senha;}



}
?>
